abstraction
Class StateAction

java.lang.Object
  extended by abstraction.StateAction

public class StateAction
extends java.lang.Object

This Class maintains informations about the pair present state and action


Field Summary
private  Action action
           
private  State presentState
           
 
Constructor Summary
StateAction(State presentState, Action action)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Action getAction()
           
 State getPresentState()
           
 int hashCode()
           
protected  void setAction(Action action)
          set action
protected  void setPresentState(State presentState)
          set present state
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

presentState

private State presentState

action

private Action action
Constructor Detail

StateAction

public StateAction(State presentState,
                   Action action)
Constructor

Parameters:
presentState -
action -
Method Detail

getPresentState

public State getPresentState()
Returns:
present state of ActionState

getAction

public Action getAction()
Returns:
action of ActionState

setPresentState

protected void setPresentState(State presentState)
set present state

Parameters:
presentState - to set

setAction

protected void setAction(Action action)
set action

Parameters:
action - to set

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object